#ifndef AST_DECLARATIONS_DESIGNATOR_H
#define AST_DECLARATIONS_DESIGNATOR_H

#include "../ASTNode.h"
class Designator;

/*
C99   6.7.8
designator-list:
		designator
		designator-list   designator
*/
class DesignatorList : public ASTNode
{
protected:
	DesignatorList(void)
		: ASTNode(ASTNode::designator_list){};
public:
	DesignatorList(Designator *pDesignator, DesignatorList *pDList = NULL)
		: ASTNode(ASTNode::designator_list)
		, m_pDesignator(pDesignator)
		, m_pDList(pDList){};


	virtual ~DesignatorList(void);

	virtual void			codeGen();

protected:
	Designator *				m_pDesignator;
	DesignatorList *			m_pDList;//may be NULL
};


#endif



